package com.codemeta.bokit.comm.exception;

import com.codemeta.bokit.comm.global.ErrorCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 通用异常
 *
 * @author hice
 * @date 2021/11/18
 */
@Getter
@AllArgsConstructor
public class CommException extends RuntimeException {

    private ErrorCode error;

    public CommException(String message, ErrorCode error) {
        super(message);
        this.error = error;
    }
}